package actions;

import java.util.ArrayList;
import java.util.List;

import entities.MWorks;
import BO.workBO.WorkBO;
import BO.workBO.WorkBOImpl;

import com.opensymphony.xwork2.ActionSupport;

public class HomeAction extends ActionSupport {
	public WorkBO workBO = new WorkBOImpl() ;
	public List<MWorks> list = new ArrayList<MWorks>();
	
	@Override
	public String execute() throws Exception {
		list=workBO.getListMain(1, 20);
		return "success";
	}
	public String workDetail() throws Exception {
		return "success";
	}
	public String news() throws Exception {
		return "success";
	}
}
